/**
 * @project lauwsys
 */
package com.chimoz.lauwsys.repository.hibernate;

import java.util.List;

import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.chimoz.lauwsys.domain.Agent;
import com.chimoz.lauwsys.repository.AgentRepository;

/**
 * @author Christian Teguh
 * @created 13 Okt 2011 00.21.20
 */
@Repository
public class HAgentRepository implements AgentRepository {
	
	@Autowired
	private SessionFactory sessionFactory;
	
	private Session currentSession() {
		return sessionFactory.getCurrentSession();
	}

	public Agent saveAgent(Agent agent) {
		return null;
	}

	public void removeAgent(Agent agent) {

	}

	public Agent getAgentById(Long id) {
		return null;
	}

	public List<Agent> listAgent(String criteria) {
		return null;
	}

}
